package com.ruoyi.stuinfo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.stuinfo.mapper.stupunMapper;
import com.ruoyi.stuinfo.domain.stupun;
import com.ruoyi.stuinfo.service.IstupunService;

/**
 * 违规记录Service业务层处理
 *
 * @author zc
 * @date 2025-05-16
 */
@Service
public class stupunServiceImpl implements IstupunService
{
    @Autowired
    private stupunMapper stupunMapper;

    /**
     * 查询违规记录
     *
     * @param recordId 违规记录主键
     * @return 违规记录
     */
    @Override
    public stupun selectstupunByRecordId(Long recordId)
    {
        return stupunMapper.selectstupunByRecordId(recordId);
    }

    /**
     * 查询违规记录列表
     *
     * @param stupun 违规记录
     * @return 违规记录
     */
    @Override
    public List<stupun> selectstupunList(stupun stupun)
    {
        return stupunMapper.selectstupunList(stupun);
    }

    /**
     * 新增违规记录
     *
     * @param stupun 违规记录
     * @return 结果
     */
    @Override
    public int insertstupun(stupun stupun)
    {
        return stupunMapper.insertstupun(stupun);
    }

    /**
     * 修改违规记录
     *
     * @param stupun 违规记录
     * @return 结果
     */
    @Override
    public int updatestupun(stupun stupun)
    {
        return stupunMapper.updatestupun(stupun);
    }

    /**
     * 批量删除违规记录
     *
     * @param recordIds 需要删除的违规记录主键
     * @return 结果
     */
    @Override
    public int deletestupunByRecordIds(Long[] recordIds)
    {
        return stupunMapper.deletestupunByRecordIds(recordIds);
    }

    /**
     * 删除违规记录信息
     *
     * @param recordId 违规记录主键
     * @return 结果
     */
    @Override
    public int deletestupunByRecordId(Long recordId)
    {
        return stupunMapper.deletestupunByRecordId(recordId);
    }

    @Override
    public List<stupun> selectstupunList_student(String teacherId) {
        return stupunMapper.selectstupunList_student(teacherId);
    }
}
